/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * APropos.java
 *
 * Created on 22 juin 2009, 23:13:33
 */

package caylus.GUI;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author Mouna
 */
public class APropos extends javax.swing.JDialog {

    /** Creates new form APropos */
    public APropos(java.awt.Frame parent, boolean modal) {
        super (parent, true);
        initComponents();
        centrerFenetre();
        repaint();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelAPropos = new javax.swing.JPanel();
        jLabelAPropos1 = new javax.swing.JLabel();
        jLabelAPropos2 = new javax.swing.JLabel();
        jLabelAPropos4 = new javax.swing.JLabel();
        jLabelAPropos5 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();

        setTitle("A propos de Caylus");
        setResizable(false);

        jPanelAPropos.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabelAPropos1.setText("En 1289, pour consolider les frontières du royaume de France, ");

        jLabelAPropos2.setText("le Roi Philippe le Bel a décidé de faire construire un nouveau château.");

        jLabelAPropos4.setText("attirés par la fortune que peutapporter  ce formidable ouvrage.");

        jLabelAPropos5.setText("Autour du chantier, une ville commence lentement à émerger.");

        jLabel1.setText("Pour l'instant, Caylus n'est qu'un modeste bourg mais");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/CaylusIm.png"))); // NOI18N

        jLabel3.setText("bientôt, les ouvriers et les artisants affluent par dizaines,");

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/CaylusAproposEnTete.png"))); // NOI18N

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/copyRight.png"))); // NOI18N

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/etiquetteX.png"))); // NOI18N

        javax.swing.GroupLayout jPanelAProposLayout = new javax.swing.GroupLayout(jPanelAPropos);
        jPanelAPropos.setLayout(jPanelAProposLayout);
        jPanelAProposLayout.setHorizontalGroup(
            jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAProposLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAProposLayout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGap(95, 95, 95)
                        .addComponent(jLabel4)
                        .addGap(45, 45, 45))
                    .addGroup(jPanelAProposLayout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelAProposLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelAPropos2, javax.swing.GroupLayout.DEFAULT_SIZE, 355, Short.MAX_VALUE)
                                    .addComponent(jLabel1)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabelAPropos4)
                                    .addGroup(jPanelAProposLayout.createSequentialGroup()
                                        .addComponent(jLabelAPropos5)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                                        .addComponent(jLabel5))))
                            .addGroup(jPanelAProposLayout.createSequentialGroup()
                                .addGap(23, 23, 23)
                                .addComponent(jLabelAPropos1)))
                        .addContainerGap())))
        );
        jPanelAProposLayout.setVerticalGroup(
            jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAProposLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel6))
                .addGap(26, 26, 26)
                .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelAProposLayout.createSequentialGroup()
                        .addComponent(jLabelAPropos1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelAPropos2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelAPropos4)
                        .addGap(4, 4, 4)
                        .addGroup(jPanelAProposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addComponent(jLabelAPropos5)))
                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelAPropos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelAPropos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void centrerFenetre()
    {
        // on place notre fenêtre au milieu
        Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
        setLocation((screen.width - getSize().width)/2,(screen.height - getSize().height)/2);
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabelAPropos1;
    private javax.swing.JLabel jLabelAPropos2;
    private javax.swing.JLabel jLabelAPropos4;
    private javax.swing.JLabel jLabelAPropos5;
    private javax.swing.JPanel jPanelAPropos;
    // End of variables declaration//GEN-END:variables

}
